package com.hscm.boss.common.exception;


import com.hscm.boss.common.enums.ResponseCode;

/*
* 自定义异常类*/
public class BossException extends RuntimeException{

    private ResponseCode responseCode;

    public BossException() {
        super();
    }

    public BossException(String message) {
        super(message);
    }

    public BossException(ResponseCode responseCode) {//这个是含有枚举对象的构造方法
        this.responseCode = responseCode;
    }

    public ResponseCode getResponseCode() {//获取枚举值
        return responseCode;
    }
}
